<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>
        var fDigui = function (n) {
            if (n == 0) {

                return 0;
            }
            if (n == 1) {
                return 1;
            }
            return fDigui(n - 1) + fDigui(n - 2);
        }

        var vResult = fDigui(6);
        console.log('>>>--------vResult', vResult);
    </script>


    <!-- <script>
        var fDigui = function (n) {
            if (n == 0) {
                console.log('>>>-----------f(' + n + ')');
                return 0;
            }
            if (n == 1) {
                console.log('>>>-----------f(' + n + ')');
                return 1;
            }
            console.log('>>>-----------f(' + n + ')=f(' + (n - 1) + ') + f(' + (n - 2) + ')');
            return fDigui(n - 1) + fDigui(n - 2);
        }

        var vResult = fDigui(6);
        console.log('>>>--------vResult', vResult);
    </script> -->
</body>

</html>